<?php
namespace app\model;

class GuestBook extends Base
{
    protected $schema = [
        "id"      => 'int',
        "name"    => "varchar",
        "phone" => "varchar",
        "content" => "varchar",
        "company" => "varchar",
        "industry" => "varchar",
        "city" => "varchar",
        "email" => "varchar",
        "time"    => 'int',
        "mark"    => 'int',
        "remark"  => "varchar"
    ];

    protected $autoWriteTimestamp = false;

    public static function saveGuestBook($data = null)
    {
        self::create($data);
    }
}
